export default {
  set_is_login(state, is_login){
    state.IS_LOGIN = is_login
  },
  set_userinfo(state, userinfo) {
    window.sessionStorage.setItem('user_info', JSON.stringify(userinfo))
    state.USER_INFO = userinfo
  },
  set_shopping_cart_info(state, info){
    state.SHOPPING_CART_INFO = info
  },
  set_access_token(state, access_token){
    window.localStorage.setItem('access_token', access_token)
    state.ACCESS_TOKEN = access_token
  },
  set_expired_at(state, expired_at){
    window.localStorage.setItem('expired_at', expired_at)
    state.EXPIRED_AT = expired_at
  },
  set_share_info(state, info){
    state.SHARE_INFO = info
  },
  set_city(state, city){
    window.localStorage.setItem('city', city)
    state.CITY = city
  },
  set_show_city_options(state, is_show = false){
    state.SHOW_CITY_OPTIONS = is_show
  },
  set_show_footer_nav(state, is_show = true) {
    state.SHOW_FOOTER_NAV = is_show
  }
}